<%
def width_style = ''
if (body_style == 'thick') {
    width_style = ' class="home"'
    showTerasaurInfoWidget = false
    searchboxWidth = 45
} else {
    showTerasaurInfoWidget = true
    searchboxWidth = 23
}
%>
        <div id="page">
<tmpl:/shared/common/header />
            <hr class="lofi" />
            <div id="main" class="section">
                <div class="wrapper">
                    <div id="content"${width_style}>
                        <g:if test='${flash.message}'>
                        <div class="message info">${flash.message}</div>
                        </g:if>
                        <g:if test='${flash.error}'>
                        <div class="message warning">${flash.error}</div>
                        </g:if>
                        <g:layoutBody />
                    </div><!--#content-->

                    <hr class="lofi" />
                    <div id="sidebar"${width_style}>
<g:if test="${collectionLogo}">
                        <div class="widget collection-logo">
                            <a href="${collectionLogo.link}"><img src="${collectionLogo.src}" alt="${collectionLogo.alt}" /></a>
                        </div>
</g:if>
<% /* try { %>
                        <wcm:widget space="terasaur" path="widgets/sidebar-features"/>
<% } catch (Exception e) {} */ %>
                        <tmpl:/shared/common/sidebar/searchbox searchboxWidth="${searchboxWidth}" />
<g:if test="${showTerasaurInfoWidget}"><sec:ifNotLoggedIn>
<% try { %>
                        <wcm:widget space="terasaur" path="widgets/sidebar-terasaur-info"/>
<% } catch (Exception e) {} %>
</sec:ifNotLoggedIn></g:if>
                        <tmpl:/shared/common/sidebar/editor_links />
                        <tmpl:/shared/common/sidebar/popular_items />
<% try { %>
                        <wcm:widget space="terasaur" path="widgets/sidebar-help"/>
<% } catch (Exception e) {} %>
                        <tmpl:/shared/common/sidebar/admin_links />
                        <div class="clear"></div>
                    </div><!--#sidebar-->

                    <div class="clear"></div>
                </div><!-- .wrapper -->
            </div><!-- #main -->
<tmpl:/shared/common/footer />
        </div><!--#page-->